/*
* 命名空间: Authority.Model
*
* 功 能： SysUser实体类
*
* 类 名： SysUserEntity
*
* Version   变更日期            负责人     变更内容
* ─────────────────────────────────────────────────
* V1.0.1    2019/09/27 14:26:13 罗维     创建
*
* Copyright (c) 2019 Lir Corporation. All rights reserved.
*/

namespace Authority.Model
{
    using System;
    using Tool.Model;

    /// <summary>
    /// 
    /// </summary>
    [Serializable]
    [DBTableInfo(TableName = "SysUser")]
    public class SysUserEntity
    {

        /// <summary>
        /// 唯一编码
        /// </summary>
        [DBFieldInfo(ByteLength = 32,DataLength = 32,DecimalDigits = 0,ColumnName = "gCode",Required = true,DefaultValue = "",IsPrimarykey = true)]
        public string gCode
        {
            get; set;
        }


        /// <summary>
        /// 组织机构编码
        /// </summary>
        [DBFieldInfo(ByteLength = 8, DataLength = 20, DecimalDigits = 0, ColumnName = "iOrganizationCode", Required = true, DefaultValue = "", IsPrimarykey = false)]
        public long iOrganizationCode
        {
            get; set;
        }

        /// <summary>
        /// 登陆名称
        /// </summary>
        [DBFieldInfo(ByteLength = 50,DataLength = 25,DecimalDigits = 0,ColumnName = "sLoginName",Required = true,DefaultValue = "",IsPrimarykey = false)]
        public string sLoginName
        {
            get; set;
        }

        /// <summary>
        /// 密码
        /// </summary>
        [DBFieldInfo(ByteLength = 100,DataLength = 50,DecimalDigits = 0,ColumnName = "sPassword",Required = true,DefaultValue = "",IsPrimarykey = false)]
        public string sPassword
        {
            get; set;
        }

        /// <summary>
        /// 联系人
        /// </summary>
        [DBFieldInfo(ByteLength = 30,DataLength = 15,DecimalDigits = 0,ColumnName = "sUserName",Required = true,DefaultValue = "",IsPrimarykey = false)]
        public string sUserName
        {
            get; set;
        }

        /// <summary>
        /// 是否冻结 0未冻结  1已经冻结
        /// </summary>
        [DBFieldInfo(ByteLength = 4,DataLength = 10,DecimalDigits = 0,ColumnName = "iState",Required = true,DefaultValue = "((0))",IsPrimarykey = false)]
        public int iState
        {
            get; set;
        }

        /// <summary>
        /// 创建时间
        /// </summary>
        [DBFieldInfo(ByteLength = 8,DataLength = 23,DecimalDigits = 3,ColumnName = "dCreateTime",Required = false,DefaultValue = "(getdate())",IsPrimarykey = false)]
        public DateTime? dCreateTime
        {
            get; set;
        }

        /// <summary>
        /// 联系电话
        /// </summary>
        [DBFieldInfo(ByteLength = 50,DataLength = 25,DecimalDigits = 0,ColumnName = "sPhone",Required = true,DefaultValue = "",IsPrimarykey = false)]
        public string sPhone
        {
            get; set;
        }

        /// <summary>
        /// 1男 2女 0未知 
        /// </summary>
        [DBFieldInfo(ByteLength = 4,DataLength = 10,DecimalDigits = 0,ColumnName = "iSex",Required = true,DefaultValue = "((1))",IsPrimarykey = false)]
        public int iSex
        {
            get; set;
        }

        /// <summary>
        /// 是否被逻辑删除
        /// </summary>
        [DBFieldInfo(ByteLength = 1,DataLength = 1,DecimalDigits = 0,ColumnName = "bIsDeleted",Required = true,DefaultValue = "((0))",IsPrimarykey = false)]
        public bool bIsDeleted
        {
            get; set;
        }

        /// <summary>
        /// 是否是超级管理员
        /// </summary>
        [DBFieldInfo(ByteLength = 1,DataLength = 1,DecimalDigits = 0,ColumnName = "bIsSuperAdmin",Required = false,DefaultValue = "((0))",IsPrimarykey = false)]
        public bool? bIsSuperAdmin
        {
            get; set;
        }

        /// <summary>
        /// 头像地址
        /// </summary>
        [DBFieldInfo(ByteLength = 400,DataLength = 200,DecimalDigits = 0,ColumnName = "sPicUrl",Required = false,DefaultValue = "",IsPrimarykey = false)]
        public string sPicUrl
        {
            get; set;
        }

        /// <summary>
        /// 锁屏密码
        /// </summary>
        [DBFieldInfo(ByteLength = 100,DataLength = 50,DecimalDigits = 0,ColumnName = "sLockScreenPsw",Required = false,DefaultValue = "((123456))",IsPrimarykey = false)]
        public string sLockScreenPsw
        {
            get; set;
        }

        /// <summary>
        ///管理员类型 0平台管理员 1公司管理员
        /// </summary>
        [DBFieldInfo(ByteLength = 4, DataLength = 10, DecimalDigits = 0, ColumnName = "iType", Required = true, DefaultValue = "((0))", IsPrimarykey = false)]
        public int iType
        {
            get; set;
        }


    }
}
